package com.itheima.consumer.feign;

import com.itheima.consumer.domain.Goods;
import org.springframework.stereotype.Component;

/**
 * 消费方 服务降级
 *
 * @author Chengfei
 * @date 2020/8/25 20:18
 */
@Component
public class GoodsFeignClientFallback implements GoodsFeignClient {
    @Override
    public Goods findGoodsById(int id) {
        Goods goods = new Goods();
        goods.setTitle("主人,又被降级了~~~~~");
        return goods;
    }
}
